package type;

import java.util.ArrayList;

/**
 * 
 * Objet représentant le type struct de XMLRMI
 * 
 * @author Kevin Pozderec,Faycal Abka
 *
 */
public class Struct {

	private String name;
	private Object value;
	private ArrayList<Struct> membres;
	
	
	
	public Struct(){
		this.name = null;
		this.value = null;
		this.membres = new ArrayList<Struct>();
	}
	
	

	public Struct(String name, Object value, int type, ArrayList<Struct> m){
		this.name = name;
		this.value = value;
		m.add(this);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public ArrayList<Struct> getMembres() {
		return membres;
	}

	public void setMembres(ArrayList<Struct> membres) {
		this.membres = membres;
	}	
}